<layout name="layout" />

<div class="main-div">
    <form name="main_form" method="POST" action="__SELF__" enctype="multipart/form-data" >
    	<input type="hidden" name="id" value="<?php echo $data['id']; ?>" />
        <table cellspacing="1" cellpadding="3" width="100%">
            <tr>
                <td class="label3" style="width:45%;">属性名称：</td>
                <td>
                    <input  type="text" name="attr_name" value="<?php echo $data['attr_name']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label3">属性类型：</td>
                <td>
                	<input type="radio" name="attr_type" value="only" <?php if($data['attr_type'] == 'only') echo 'checked="checked"'; ?> />only 
                	<input type="radio" name="attr_type" value="op" <?php if($data['attr_type'] == 'op') echo 'checked="checked"'; ?> />op 
                </td>
            </tr>
            <tr>
                <td class="label3">属性可选值：</td>
                <td>
                    <input  type="text" name="attr_option_values" value="<?php echo $data['attr_option_values']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label3">所属类型：</td>
                <td>
                    <?php buildSelect('Type','type_id','id','type_name',I('get.type_id'))?>
                </td>
            </tr>
            <tr>
                <td colspan="99" align="center">
                    <input type="submit" class="button" value=" 确定 " />
                    <input type="reset" class="button" value=" 重置 " />
                </td>
            </tr>
        </table>
    </form>
</div>


<script>
</script>